﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for PLEmployment
/// </summary>
/// 
namespace CE.PersonalLoan
{
    public class PLEmployment
    {
        private Int64 _plempid;
        private Int64 _plpersonnelid;
        private Int64 _plid;
        private string _ploccupation;
        private string _plindbustype;
        private string _plempbusname;
        private string _plempbusnature;
        private string _plposition;
        private Int16 _plserviceyears;
        private Int16 _plservicemonths;
        private string _plempunitno;
        private string _plemphomeno;
        private string _plempstreetname;
        private string _plempcountry;
        private string _plemppostalcode;
        private float _planualincome;
        private bool _plotherincome;
        private float _plotherincomeamount;
        private string _plotherincomesource;
        //Common field
        private Int64 _vieweddetailid;
        private bool _plstatus;
        private DateTime _plcreateddate;
        private DateTime _plmodifieddate;
        //extra field for future extend
        private string _info1;
        private string _info2;
        private string _info3;
        private string _info4;
        private string _info5;

        public PLEmployment()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 PLEmpId
        {
            get { return _plempid; }
            set { _plempid = value; }
        }

        public Int64 PLPersonnelId
        {
            get { return _plpersonnelid; }
            set { _plpersonnelid = value; }
        }

        public Int64 PLId
        {
            get { return _plid; }
            set { _plid = value; }
        }

        public string PLEmpOccupation
        {
            get { return _ploccupation; }
            set { _ploccupation = value; }
        }

        public string PLIndBusiType
        {
            get { return _plindbustype; }
            set { _plindbustype = value; }
        }

        public string PLEmpBusiName
        {
            get { return _plempbusname; }
            set { _plempbusname = value; }
        }

        public string PLEmpBusiNature
        {
            get { return _plempbusnature; }
            set { _plempbusnature = value; }
        }

        public string PLPosition
        {
            get { return _plposition; }
            set { _plposition = value; }
        }
 
        public Int16 PLServiceYears
        {
            get { return _plserviceyears; }
            set { _plserviceyears = value; }
        }

        public Int16 PLServiceMonths
        {
            get { return _plservicemonths; }
            set { _plservicemonths = value; }
        }

        public string PLEmpUnitNo
        {
            get { return _plempunitno; }
            set { _plempunitno = value; }
        }

        public string PLEmpHomeNo
        {
            get { return _plemphomeno; }
            set { _plemphomeno = value; }
        }

        public string PLEmpStreetName
        {
            get { return _plempstreetname; }
            set { _plempstreetname = value; }
        }

        public string PLEmpCountry
        {
            get { return _plempcountry; }
            set { _plempcountry = value; }
        }

        public string PLEmpPostalCode
        {
            get { return _plemppostalcode; }
            set { _plemppostalcode = value; }
        }

        public float PLAnualIncome
        {
            get { return _planualincome; }
            set { _planualincome = value; }
        }

        public bool PLOtherIncome
        {
            get { return _plotherincome; }
            set { _plotherincome = value; }
        }

        public float PLOtherIncomeAmt
        {
            get { return _plotherincomeamount; }
            set { _plotherincomeamount = value; }
        }

        public string PLOtherIncomeSource
        {
            get { return _plotherincomesource; }
            set { _plotherincomesource = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool PLStatus
        {
            get { return _plstatus; }
            set { _plstatus = value; }
        }

        public DateTime PLCreatedDate
        {
            get { return _plcreateddate; }
            set { _plcreateddate = value; }
        }

        public DateTime PLModifiedDate
        {
            get { return _plmodifieddate; }
            set { _plmodifieddate = value; }
        }

        public string PLInfo1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string PLInfo2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string PLInfo3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public string PLInfo4
        {
            get { return _info4; }
            set { _info4 = value; }
        }

        public string PLInfo5
        {
            get { return _info5; }
            set { _info5 = value; }
        }

        public void ClearFields()
        {
            _plempid = 0;
            _plpersonnelid = 0;
            _plid = 0;
            _ploccupation = "";
            _plindbustype = "";
            _plempbusname = "";
            _plempbusnature = "";
            _plposition = "";
            _plserviceyears = -1;
            _plservicemonths = -1;
            _plempunitno = "";
            _plemphomeno = "";
            _plempstreetname = "";
            _plempcountry = "";
            _plemppostalcode = "";
            _planualincome = 0.0f;
            _plotherincome = false;
            _plotherincomeamount = 0.0f;
            _plotherincomesource = "";
            //extra field for future extend
            _vieweddetailid = 0;
            _plstatus = false;
            _plcreateddate = CE.Global.General.GetUTCDateTime();
            _plmodifieddate = CE.Global.General.GetUTCDateTime();
            _info1 = "";
            _info2 = "";
            _info3 = "";
            _info4 = "";
            _info5 = "";
        }

    }
}